<template>
  <div>
    <van-nav-bar
        title="标题"
        left-text=""
        @click-left="onClickLeft"
        @click-right="onClickRight"
    />
  </div>
</template>

<script>
import Vue from 'vue';
import {NavBar, Toast} from 'vant';
import  'vant/lib/nav-bar/index.css';

Vue.use(NavBar)
Vue.use(Toast)
export default {
  name: "Header",
  methods: {
    onClickLeft() {
      Toast('返回');
    },
    onClickRight() {
      Toast('按钮');
    },
  },
}
</script>

<style scoped>

</style>